import request from '@/utils/request'

// 查询祝福语列表
export function listBless(query) {
  return request({
    url: '/system/bless/list',
    method: 'get',
    params: query
  })
}

// 查询祝福语详细
export function getBless(id) {
  return request({
    url: '/system/bless/' + id,
    method: 'get'
  })
}

// 新增祝福语
export function addBless(data) {
  return request({
    url: '/system/bless',
    method: 'post',
    data: data
  })
}

// 修改祝福语
export function updateBless(data) {
  return request({
    url: '/system/bless',
    method: 'put',
    data: data
  })
}

// 删除祝福语
export function delBless(id) {
  return request({
    url: '/system/bless/' + id,
    method: 'delete'
  })
}
